package lsgoodsclass

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type LsGoodsClassRouter struct {}

// InitLsGoodsClassRouter 初始化 lsGoodsClass表 路由信息
func (s *LsGoodsClassRouter) InitLsGoodsClassRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	lsGoodsClassRouter := Router.Group("lsGoodsClass").Use(middleware.OperationRecord())
	lsGoodsClassRouterWithoutRecord := Router.Group("lsGoodsClass")
	lsGoodsClassRouterWithoutAuth := PublicRouter.Group("lsGoodsClass")
	{
		lsGoodsClassRouter.POST("createLsGoodsClass", lsGoodsClassApi.CreateLsGoodsClass)   // 新建lsGoodsClass表
		lsGoodsClassRouter.DELETE("deleteLsGoodsClass", lsGoodsClassApi.DeleteLsGoodsClass) // 删除lsGoodsClass表
		lsGoodsClassRouter.DELETE("deleteLsGoodsClassByIds", lsGoodsClassApi.DeleteLsGoodsClassByIds) // 批量删除lsGoodsClass表
		lsGoodsClassRouter.PUT("updateLsGoodsClass", lsGoodsClassApi.UpdateLsGoodsClass)    // 更新lsGoodsClass表
	}
	{
		lsGoodsClassRouterWithoutRecord.GET("findLsGoodsClass", lsGoodsClassApi.FindLsGoodsClass)        // 根据ID获取lsGoodsClass表
		lsGoodsClassRouterWithoutRecord.GET("getLsGoodsClassList", lsGoodsClassApi.GetLsGoodsClassList)  // 获取lsGoodsClass表列表
	}
	{
	    lsGoodsClassRouterWithoutAuth.GET("getLsGoodsClassPublic", lsGoodsClassApi.GetLsGoodsClassPublic)  // lsGoodsClass表开放接口
	}
}
